public class Generics3 {

	public static void main(String[] args) {
		// Create an instance of Pair <F, S> class.
		// Let's call it p1.
		Number n1 = new Integer(5);
		String s1 = new String("Sun");
		Pair<Number, String> p1 = new Pair<Number, String>(n1, s1);
		
		// Set internal variables of p1.
		p1.setFirst(new Long(6L));
		p1.setSecond(new String("rises"));

	}

}
